package com.Extends.InnerClass;

public class JumpingDemo {
    public static void main(String[] args) {
        JumpingOperator jo = new JumpingOperator();
        jo.useJumping(new Jumping() {
            @Override
            public void jump() {
                System.out.println("猫跳的很高");
            }
        });
        jo.useJumping(new Jumping() {
            @Override
            public void jump() {
                System.out.println("狗也跳的很高");
            }
        });
    }
}
